package com.twt.model.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.twt.model.base.BaseEntity;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.Date;

@Data
@TableName("t_sys_account")
public class SysAccount extends BaseEntity implements Serializable {
    private String accPid;
    @NotBlank(message = "账号昵称不能为空")
    private String nickName;
    private String avatar;

    @NotBlank(message = "登录账号不能为空")
    private String account;
    private String password;

    @NotBlank(message = "账号类型不能为空")
    private String accType;
    private String lastLoginIp;
    private String lastLoginAddress;

    private int isLocked;
}
